package com.lerarneurekacheckinvoke.eurekacheckinvoke.dao;

import com.lerarneurekacheckinvoke.eurekacheckinvoke.common.Result;
import com.lerarneurekacheckinvoke.eurekacheckinvoke.common.exceptionDologin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "Learnclient",fallbackFactory = exceptionDologin.class)
public interface doLogin {
    @PostMapping("/login")
    Result doLogin(@RequestParam("account")String account,@RequestParam("password")String password);
    @GetMapping("/logout")
    Result logout(@RequestParam("Token")String token);
}
